package com.thghh.resource.util;

import com.thghh.resource.ResourceLoader;

public final class ResourceLoaderUtils {

    private ResourceLoaderUtils() {
        // Not meant to be instantiated
    }

    public static String getClassNameForToString(ResourceLoader resourceLoader) {
        final Class tlClass = resourceLoader.getClass();
        final Package tlPackage = tlClass.getPackage();
        return tlPackage == resourceLoader.getClass().getPackage() || tlPackage == ResourceLoader.class.getPackage()
                ? tlClass.getSimpleName() : tlClass.getName();
    }


}